#ifndef BASERESULT_H
#define BASERESULT_H

#include <QObject>
#include <QString>

#include <QJsonObject>
#include <QJsonArray>
#include <QJsonDocument>

class BaseResult {

public:
    typedef QString JsonResult;
    enum RET_VALUE {SUCCEED = 1, FAILED = -1};
    BaseResult(int retVal, QString retStr);
    BaseResult(int retVal, QString retStr, QJsonObject retObj);
    ~BaseResult();
    JsonResult toJson();

private :
    int retVal;
    QString retStr;
    QJsonObject retObj;
};


#endif // BASERESULT_H
